package com.beyondbit.hr.report.service;

import com.beyondbit.hr.api.utils.NonRollbackException;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;

import javax.servlet.http.HttpServletRequest;
import java.io.InputStream;
import java.sql.Connection;
import java.util.Map;

public interface ReportService {
    JasperReport jasperReport(String reportName) throws NonRollbackException;
    JasperReport jasperReport(InputStream inputStream) throws NonRollbackException;
    JasperPrint  jasperPrint(JasperReport jr, Map<String, Object> params, Connection connection) throws NonRollbackException;
    JasperPrint  jasperPrint(JasperReport jr, HttpServletRequest httpServletRequest) throws NonRollbackException;
}
